package com.fox.imagedb.model;

import java.util.ArrayList;
import java.util.List;

import javax.swing.tree.DefaultMutableTreeNode;

public class PhylTreeNode extends DefaultMutableTreeNode {

    private static final long serialVersionUID = 4274471761093900676L;

    private List<String> synapomorphies;

    private List<String> attributes;

    private List<Taxon> taxons;

    private String period;

    public PhylTreeNode() {
	super();
	this.synapomorphies = new ArrayList<String>();
	this.attributes = new ArrayList<String>();
	this.taxons = new ArrayList<Taxon>();
    }

    public PhylTreeNode(Object node) {
	super(node);
	this.synapomorphies = new ArrayList<String>();
	this.attributes = new ArrayList<String>();
	this.taxons = new ArrayList<Taxon>();
    }

    public PhylTreeNode(Object node, List<String> synapomorphies) {
	super(node);
	this.synapomorphies = synapomorphies;
	this.attributes = new ArrayList<String>();
	this.taxons = new ArrayList<Taxon>();
    }

    public List<String> getAttributes() {
	return attributes;
    }

    public String getPeriod() {
	return period;
    }

    public List<String> getSynapomorphies() {
	return synapomorphies;
    }

    public List<Taxon> getTaxons() {
	return taxons;
    }

    public void setAttributes(List<String> attributes) {
	this.attributes = attributes;
    }

    public void setPeriod(String period) {
	this.period = period;
    }

    public void setSynapomorphies(List<String> synapomorphies) {
	this.synapomorphies = synapomorphies;
    }

    public void setTaxons(List<Taxon> taxons) {
	this.taxons = taxons;
    }

}
